<ui:composition
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:c="http://java.sun.com/jstl/core"
  xmlns:nxu="http://nuxeo.org/nxweb/util"
  xmlns:nxh="http://nuxeo.org/nxweb/html">

  <nxu:set var="actions" value="#{webActions.getActionsList('VERSION_LIST_ITEM', false)}">
    <c:forEach var="sel_action" items="#{actions}">
      <span id="#{sel_action.id}">
        <nxh:commandButton
          styleClass="button"
          action="#{sel_action.getLink()}"
          value="#{messages[sel_action.label]}"
          onclick="#{sel_action.confirm}"
          disabled="#{!sel_action.available}"
          immediate="#{sel_action.immediate}"
          id="#{sel_action.id}_button">
          <f:setPropertyActionListener value="#{versionItemSelection.data.id}"
              target="#{versionedActions.selectedVersionId}" />
        </nxh:commandButton>
       </span>
     </c:forEach>
  </nxu:set>

</ui:composition>